<?php

class App_Plugin_Menu extends Zend_Controller_Plugin_Abstract
{
    public function preDispatch(Zend_Controller_Request_Abstract $request)
    {
        $layout = Zend_Layout::getMvcInstance()->getView();
        $pagesManager = new \Managers\Pages();
        $layout->menu = $pagesManager->getMenu();
    }
}
